//
//  receiveGiftListLength.m
//  tcpoctest
//
//  Created by gump on 5/21/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "receiveGiftListLength.h"

#import "GiftInfoDataSource.h"

#import "sendGiftListID.h"

@implementation receiveGiftListLength

-(void)processreceive
{
    //返回 26char(1),1char(1)，分类ID char(1),长度int
    char iid = [logicsb ReadChar];
    int itotal = [logicsb ReadIntWithTT:NTT_BIG2SMALL];
    
    int idiccount = [[DataControl shareControl].giftInfoDS GetTotalCount];
    
    if (idiccount < itotal) {
        [[netManager sharedNetManager].sendgiftLID sendGiftListIDByBegin:iid];
    }
    
    [self ShowLog];
}

@end
